package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Likeb;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface LikebMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Likeb record);

    Likeb selectByPrimaryKey(Long id);

    List<Likeb> selectAll();

    int updateByPrimaryKey(Likeb record);

    Likeb selectState(@Param("userId") Long userId, @Param("strategyId") Long strategyId);


    void deleteByP2Id(@Param("userId") Long userId, @Param("strategyId") Long strategyId);

    int countByLikeb( Long strategyId);


}